package com.xhai.service.impl;

import com.xhai.common.domain.entity.SysDept;
import com.xhai.mapper.SysDeptMapper;
import com.xhai.service.SysDeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 部门表 服务实现类
 * </p>
 *
 * @author xhai
 * @since 2025-05-24
 */
@Service
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> implements SysDeptService {

    @Resource
    private SysDeptMapper sysDeptMapper;

    @Override
    public List<SysDept> selectDeptByUserId(Long userId) {
        return sysDeptMapper.selectDeptByUserId(userId);

    }
}
